Component({
    properties: {
        cell: Object,
        x: Number,
        y: Number
    },
    data: {},
    methods: {
        /**
         * 传递数据
         * 子组件往父组件发送事件
         *
         * 可选参数
         * bubbles 开启冒泡
         * composed 跨越组件
         * @param event
         */
        onTap(event) {
            console.log(this.properties.cell)
            this.triggerEvent('celltap', {
                cell: this.properties.cell,
                x: this.properties.x,
                y: this.properties.y
            }, {
                bubbles: true,
                composed: true
            })
        }
    }
})
